package com.jml.原型模式.深克隆;

import java.io.Serializable;

public class JinGuBang implements  /*Cloneable,*/Serializable {

    public float h = 100;
    public float d = 10;

    public void big() {
        this.d *= 2;
        this.h *= 2;
    }
    public void small(){
        this.d /= 2;
        this.h /= 2;
    }

    /*@Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }*/
}
